第7步:每个列表都有6个索引从 05 的值。

如果将索引更改为5以上的数字,则会导致错误,因为列表中没有足够的值。

  • 找到读取 head_image·=·head_list[0] 的代码行。
  • 将索引更改为 1。点击 运行 以查看更改。
  • 尝试其他索引数字,并选择你最喜欢的图像。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)